/**
 * OSAmI: Open Source Ambient Intelligence
 * Copyright (C) 2010 Bull S.A.S.
 * Contact: osami-general@osami-commons.org
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 * USA
 */

package org.osami.gateway.tests.internal;

import java.util.Date;
import java.util.Map;

import org.osami.gateway.alarm.IAlarm;

public class MockAlarm implements IAlarm {
	
	private String identifier;
	private Date generationDate = new Date();
	private String message;
	private Severity severity;
	
	public MockAlarm(String identifier) {
		this.identifier = identifier;
	}

	public void disengage() {
		// Do nothing for the moment
	}

	public Date getDate() {
		return generationDate;
	}

	public String getIdentifier() {
		return identifier;
	}

	public String getMessage() {
		return message;
	}

	public Severity getSeverity() {
		return severity;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public void setSeverity(Severity severity) {
		this.severity = severity;
	}

    public Map<String, Object> toProperties() {
        throw new UnsupportedOperationException("Not implemented");
    }

	
}
